package com.seuic.hnapps.util;

import com.google.gson.Gson;
import com.orhanobut.logger.Logger;
import com.seuic.hnapps.bean.Sign_in_Bean;
import com.zhy.http.okhttp.callback.Callback;
import com.zhy.http.okhttp.callback.StringCallback;

import okhttp3.Call;
import okhttp3.Response;

public abstract class Sign_in_Callback extends Callback<Sign_in_Bean> {

    @Override
    public Sign_in_Bean parseNetworkResponse(Response response, int id) throws Exception {
        Sign_in_Bean inBean=new Gson().fromJson(response.body().string(),Sign_in_Bean.class);
        return inBean;
    }

    @Override
    public void onError(Call call, Response response, Exception e, int id) {

    }

    @Override
    public void onResponse(Sign_in_Bean response, int id) {

    }
}
